(function(angular) {
	"use strict";
	angular.module("fs.waf").factory("paySwiftMonitorService", paySwiftMonitorService);
	paySwiftMonitorService.$inject = [ "$q", "ajaxServiceFactory", "settlementPaymentService" ];
	function paySwiftMonitorService($q, ajaxServiceFactory, settlementPaymentService) {

		function getCurrencyOptions() {
			var ajaxService = ajaxServiceFactory.buildAjaxService({
				getCurrencyOptions : {
					url : "do/cda/dataList/currenciesBySiteCode",
					method : "get"
				}
			}), defer = $q.defer();
			ajaxService.getCurrencyOptions().then(function(response) {
				defer.resolve(response ? response.data : []);
			}, angular.noop);
			return defer.promise;
		}

		return {
			getCurrencyOptions : getCurrencyOptions,
			initViewOptions : settlementPaymentService.settlementPaymentOptions,
			initPayPartyTabs : settlementPaymentService.initPayPartyTabs
		};
	}
})(angular);